Feature: side panel navbar verification

  Background:user have logged in the system
    Given orangehrm website was opened in browser
    Then the login page shows
    Then input user name "Admin"
    Then input user password "admin123"
    And click user logon commit button
    Then dashboard page shows

  @sprint-2
  Scenario: verify module search show correct when user have logged in
    """
    This scenario check if the search box shows
    """
    Then module search box shown in HRM menu bar

 Scenario Outline: verify menu search function correct
    When user input <keyword> into menu search box
    Then the search result contains <result> menu
    Examples:
      | keyword | result |
      | admin   | Admin  |
      | Admin   | Admin  |
      | A       | Admin  |
      | p       | PIM    |
      | t       | Time   |
      | xx      |        |

  @sprint-2
  Scenario Outline: verify menu shows correct and its function is correct
  """
    This scenario check if the menu shows and function is correct
    """
    Then <menu> menu shown in HRM menu bar
    When user tab the <menu>
    Then the <page> shows correctly
    Examples:
      | menu        | page        |
      | Admin       | Admin       |
      | PIM         | PIM         |
      | Leave       | Leave       |
      | Time        | Time        |
      | Recruitment | Recruitment |
      | My Info     | PIM         |
      | Performance | Performance |
      | Dashboard   | Dashboard   |
      | Directory   | Directory   |
      | Maintenance | Maintenance |
      | Claim       | Claim       |
      | Buzz        | Buzz        |
